/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.common.utils.ws.jackson.mixins;

import org.springframework.data.domain.Page;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * xxx
 *
 * @author Wangyi
 * @version v1.0
 *
 * @date 2013-7-25
 *
 */
@SuppressWarnings("rawtypes")
@JsonDeserialize(as=SimplePage.class)
public interface PageMixin extends Page {
	@JsonIgnore
	public int getTotalPages();
	
	@JsonIgnore
	public int getNumberOfElements();
	
	@JsonIgnore
	public boolean isFirstPage();
	
	@JsonIgnore
	public boolean isLastPage();
}
